using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
using Microsoft.AspNetCore.Mvc.Rendering;

namespace SourceStack.Pages.Profile
{
    public class WriteModel : PageModel
    {
        public Entities.User NewUser { get; set; }
        public IEnumerable<SelectListItem> AvailbleMonths { get; set; }
        public string BirthMonth { get; set; }
        public IEnumerable<SelectListItem> AvailbleYears { get; set; }
        public string BirthYear { get; set; }
        public void OnGet()
        {
            AvailbleYears = new List<SelectListItem> {
                new SelectListItem{Text= "2016", Value="2016" },
                new SelectListItem{Text= "2015", Value="2015", Selected=true },
            };

            AvailbleMonths = new List<SelectListItem> {
                      new SelectListItem("4","4"),
                new SelectListItem{Text= "5", Value="5" },
                new SelectListItem{Text= "6", Value="6", Selected=true },
            };
        }
        public void OnPost()
        {

        }
    }
}
